package com.cykj.pos.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cykj.pos.domain.BizMerchantReceiver;
import com.cykj.pos.domain.dto.BizMerchantReceiverDTO;

import java.util.List;

/**
 * 商户下发收款者Service接口
 *
 * @author xxl
 * @date 2022-03-24
 */
public interface IBizMerchantReceiverService extends IService<BizMerchantReceiver> {

    /**
     * 查询列表
     */
    List<BizMerchantReceiver> queryList(BizMerchantReceiver bizMerchantReceiver);

    /**
     * 查询商户收款者
     * @param bizMerchantReceiver
     * @return
     */
    BizMerchantReceiver selectBizMerchantReceiverByMerchId(BizMerchantReceiver bizMerchantReceiver);

    /**
     * 更新收款者状态
     * @param bizMerchantReceiver
     */
    void updateBizMerchantReceiver(BizMerchantReceiver bizMerchantReceiver);


    Long selectUserId(String deal_no);

    /**
     * 查询收款者信息
     * @param userId
     * @return
     */
    BizMerchantReceiver selectBizMerchantReceiverByUserId(Long userId);

    /*添加收款者*/
    Long intserReceiverService(BizMerchantReceiver bizMerchantReceiver);

    /*
     * 更新收款者状态
     * */
    void updateReceiver(BizMerchantReceiver bizMerchantReceiver);

    Long selectMerchantReceiverMerchId(String idNumber);

    BizMerchantReceiver selectReceiverMerchIdcard(String merchIdcard, Long merchId);

    String getStatus(String merchId);

    BizMerchantReceiver selectReceiverMerchIdcardIsSign(String merchIdcard, String dftype,String deptId);

    BizMerchantReceiver selectReceiverMerchIdcardIsSignLzf(String merchIdcard);

    BizMerchantReceiver selectBizMerchantReceiverByUserIdAndMerchId(String merchId, String userId,String deptId);

    List<BizMerchantReceiver> getEachOne();

    BizMerchantReceiver bizMerchantReceiver(BizMerchantReceiverDTO bizMerchantReceiverDTO);
}
